package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {
		if (args.length<1){
			System.out.println("Argument number error!");
			return;
		}
		modify(args[0]);
	}
	
	static void modify(final String str){
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if (Character.isDigit(charAtIndex)) {
			} else if (charAtIndex == '+'){
				System.out.print("++");
			} else if (charAtIndex == '-'){
				System.out.print("--");
			} else {
				System.out.print(charAtIndex);
			}
		}
	}
}
